package cn.kgc.shiro03.util;

/**
 * @author: mosin
 * @version: v1.0  2022/11/22
 */
public enum CodeMsg {

    SELECT_SUCCESS("查询成功",0),
    UPDATE_SUCCESS("更新成功",0),
    UPDATE_FAIL("更新失败",500),
    USER_EXIST("用户已存在",500),
    ROLE_EXIST("角色名已存在",500),
    ADD_SUCCESS("添加成功",0),
    DELETE_SUCCESS("删除成功",0),
    DELETE_FAIL("删除失败",500),
    ROLE_USED("角色被占用",500),
    LOGIN_SUCCESS("登录成功",0),
    LOGIN_FAIL("登录成功",0),
    LOGIN_OUT("退出成功",0),
    CODE_FAIL("验证码不正确",500),
    SELECT_FAIL("查询失败",500);

    private String msg;
    private Integer code;

    CodeMsg(String msg,Integer code){
        this.code = code;
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public Integer getCode() {
        return code;
    }
}
